﻿@model Cus_LandModel
@{
    List<Cus_LandModel> lstCusLand = ViewBag.lstCusLand != null ? (List<Cus_LandModel>)ViewBag.lstCusLand : new List<Cus_LandModel>();
}
@*@{
    foreach (var item in lstCusLand)
    {
     
        
        <div class="Clearfix" onclick="openLandDetail('@item.Id')">
        <table class="tbLand_Us" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <th class="title" colspan="6">
                    @Html.Hidden("oder", item.Code)                    
                    @item.Code
                </th>
            </tr>
            <tr>
                
                <th>Loai:</th>
                <td>@item.BDSLandName</td>
                <th>Giá :</th>
                <td>@item.TotalCost</td>
                <th>Diện Tích:</th>
                <td>@item.Area</td>
                
            </tr>
            <tr>                
                <th>Hướng</th>
                <td>@item.Direction</td>
                <th>Số Tầng:</th>
                <td>@item.NumFloor</td>
                <th>Ngày đăng:</th>
                <td>@String.Format("{0:d/MM/yyyy HH:mm}", item.DateCreate) </td>                
            </tr>
            <tr>
                <td colspan="6">
                </td>
            </tr>
    </table>

    </div>
    }
}*@



 
@{
    foreach (var item in lstCusLand)
    {
        var imgUrl = "../../Content/Image/admin/noImage.png"; 
        if(item.CusLand_Image != null)
        {
            imgUrl = "../Uploads/" + item.CusLand_Image;
        }
        
        <div class="landRow Clearfix" onclick="openLandDetail('@item.url')">
            @Html.Hidden("oder", item.Code) 
            <div class="LandTitleList">@item.Title</div>
            <div class="Clearfix">
                <div class="landDescList">
                    <img class="imgAvatarList" src="@imgUrl" alt="@item.BDSLandName" />
                     @Html.Raw(item.CusLand_Body)
                </div>
                <div class="LandInfoList">
                    <div>
                        <span>Ngày đăng :</span> @String.Format("{0:d/MM/yyyy HH:mm}", item.DateCreate)
                     </div>
                     <div>
                        <span>Diện tích :</span> @item.Area
                     </div>
                     <div>
                        <span>Giá :</span> @item.Currency 
                     </div>
                </div>
            </div>
    </div>
    }
}
